package com.epalmpay.service.mall;

import java.util.List;

import com.epalmpay.dto.mall.MainAdvertInDTO;
import com.epalmpay.dto.mall.MainAdvertOutDTO;
import com.epalmpay.entity.MainAdvert;
import com.epalmpay.entity.Page;

/**
 * Created by gwn on 2017/5/22.
 */
public interface IMainAdvertService {

	//查询列表
	List<MainAdvertOutDTO> listMainAdverts(MainAdvertInDTO mainAdvertOut,Page page) throws Exception;
	//保存首页轮播图
	void saveMainAdvert(MainAdvertInDTO mainAdvertInDTO) throws Exception;
	
	//编辑时回显 根据id 查询首页轮播图的信息
	MainAdvert findMainAdvertById(MainAdvert mainAdvert) throws Exception;
	
	//修改首页轮播图信息
	void editMainAdvert(MainAdvert mainAdvert);
	//删除首页轮播图
	void deleteMemberGrade(MainAdvert mainAdvert);
	
	//根据id查询状态
	MainAdvert findMainAdvert(Long id);
	//更新状态
	void updateStatus(MainAdvert mainAdverts);
	
	

}
